cmake_minimum_required(VERSION 2.8.4)
project(ClientLib)

set (MY_OUT_DIR "${PROJECT_SOURCE_DIR}/../../out")
set (LIBRARY_OUTPUT_PATH "${MY_OUT_DIR}/../bin")

include_directories("${PROJECT_SOURCE_DIR}/include/")
include_directories("${PROJECT_SOURCE_DIR}/api/")
include_directories ("${PROJECT_SOURCE_DIR}/../Internal/NetworkLib/include/") 
include_directories ("${PROJECT_SOURCE_DIR}/../Internal/UtilsLib/include/") 
include_directories ("${PROJECT_SOURCE_DIR}/../External/logog/include/")
configure_file("${PROJECT_SOURCE_DIR}/api/config.h.cm" "${PROJECT_SOURCE_DIR}/api/config.h")
AUX_SOURCE_DIRECTORY("${PROJECT_SOURCE_DIR}/src/" ClientLib_SOURCES) 

#add_library(${PROJECT_NAME}-shared SHARED ${ClientLib_SOURCES})
add_library(${PROJECT_NAME}-static STATIC ${ClientLib_SOURCES})
#target_link_libraries (${PROJECT_NAME}-shared NetworkLib) 
#target_link_libraries (${PROJECT_NAME}-shared UtilsLib) 
#target_link_libraries (${PROJECT_NAME}-shared logog) 
target_link_libraries (${PROJECT_NAME}-static NetworkLib) 
target_link_libraries (${PROJECT_NAME}-static UtilsLib) 
target_link_libraries (${PROJECT_NAME}-static logog) 

